
import http from "../../request.js"
// latestProducts(1,10,{})
// /lejuClient/home/latestProducts/${start}/${limit} ? id=1

// 注册
function register(data) {
	return http({
		url: `/lejuClient/member/register`,
		data: data,//1308336521604599809,
		method:'POST'
	})
}

// 更改用户信息
function updateMemberInfo(data) {
	return http({
		url: `/lejuClient/member/updateMemberInfo`,
		data: data,//1308336521604599809,
		method:'POST'
	})
}


// 更改密码
function updatePassword(data) {
	return http({
		url: `/lejuClient/member/updatePassword`,
		data: data,//1308336521604599809,
		method:'POST'
	})
}



// 登录
function doLogin(data) {
	return http({
		url: `/lejuClient/login/doLogin`,
		data: data,//1308336521604599809,
		method:'POST'
	})
}

// 获取用户信息
function getMemberInfo(data) {
	return http({
		url: `/lejuClient/login/getMemberInfo`,
		data: data,//1308336521604599809,
	})
}


// 上传头像
function uploadAvatar(data) {
	return http({
		url: `/lejuClient/login/uploadAvatar`,
		data: data,//1308336521604599809,
		method:'POST'
	})
}


export {
	register,updateMemberInfo,updatePassword,doLogin,uploadAvatar,getMemberInfo
}
